package model

import (
	"time"

	"open/internal/model/field"
)

// Schedule 定时任务调度 client
type Schedule struct {
	BaseModel
	RefID          int64      `gorm:"comment:关联ID"`
	JobType        string     `gorm:"comment:任务类型"`
	JobData        field.JSON `gorm:"comment:任务数据"`
	RetryCount     int        `gorm:"comment:重试次数"`
	NextExecutedAt *time.Time `gorm:"comment:下次执行时间"`
	JobStatus      int        `gorm:"comment:状态"`
}
